package peppa.george.base.service;

import peppa.george.base.Util.PageUtil;
import peppa.george.base.query.BaseQuery;

import java.util.List;

public interface BaseService<T> {
    List<T> findall();

    T findone(Long id);

    void save(T t);

    void update(T t);

    void remove(Long id);

    PageUtil<T> QueryData(BaseQuery query);

    void patchremove(List<Long> ids);
}
